package com.kh.first.service;

import cn.hutool.core.bean.BeanUtil;
import com.kh.first.dao.ReportDetailDao;
import com.kh.first.kv.ReportUse;
import com.kh.first.pojo.ReportDetailPojo;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.data.mongodb.core.MongoTemplate;
//import org.springframework.data.mongodb.core.query.Criteria;
//import org.springframework.data.mongodb.core.query.Query;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.*;

@Service
@Transactional
public class ReportDetailService {
    @Autowired
    ReportDetailDao reportDetailDao;

    public Long saveDetail(ReportDetailPojo reportDetailPojo) {
        reportDetailPojo.setCreateTime(new Date());
        return reportDetailDao.saveReportDetail(reportDetailPojo);
    }
}
